//富文本字符串处理  为img添加style=100%
export const formatRichImg = (htmlString) => {
	var regex = /<img/gi;
	var newHtmlString = htmlString.replace(regex, '<img style="width: 100%;"');
	newHtmlString = newHtmlString.replace(/(<img style="width: 100%;)([^>"])/g, '$1 $2');
	return newHtmlString;
}
